import base from './base'
import MissNode from './missNode.vue'

class MissNodeView extends base.view {
	constructor(props) {
		super(props, MissNode)
	}
}

class MissNodeModel extends base.model {


	setAttributes() {
		this.text.editable = false; // 禁止节点文本编辑
		// 设置节点宽高和锚点
		const width = 70;
		const height = 28;
		this.width = width;
		this.height = height;
		// this.anchorsOffset = [[width / 2, 0], [0, height / 2], [-width / 2, 0], [0, -height / 2],];
	}

	showRemoveIcon() {
		return false;
	}

	showCopyNodeIcon() {
		return false;
	}

	showAddNodeIcon() {
		return false;
	}
	showPackageNodeIcon() {
		return false;
	}
}

export default {
	type: 'miss-node',
	model: MissNodeModel,
	view: MissNodeView
}
